<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>模拟用户登录与注册</title>
    <head/>

<body>

使用springmvc模拟用户登录与注册

<br/>

<form action= "/login" method="post" >
    <table>
        <tr>
            <td>用户名</td>
            <td><input type="text" name= "username"/></td>
        </tr>
        <tr>
            <td>密码</td>
            <td><input type= "text" name= "password"/></td>
        </tr>
        <tr>
            <td colspan="2"><input type= "submit" value= "登录"/></td>
            <td colspan="2"><a href="/register">注册</a></td>
        </tr>
    </table>
</form>
</body>
</html>